package com.fjl.boot;

import org.springframework.context.annotation.DeferredImportSelector;
import org.springframework.core.type.AnnotationMetadata;

// 12. DeferredImportSelector 延迟导入
class MyDeferredImportSelector implements DeferredImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        System.out.println(">> DeferredImportSelector.selectImports");
        return new String[]{DynamicBean.class.getName()};
    }
}